#!/usr/bin/env python3

try :
    file=open("t.txt", "w")
    for i in range(10):
        file.write(str(i)+'\n')
    file.close 
except Exception as e:
    print("err!") 